package com.fmdj.customer.feign;
import com.fmdj.common.util.CommonResult;
import com.fmdj.customer.controller.form.EstimateOrderChargeForm;
import com.fmdj.customer.controller.form.EstimateOrderMileageAndMinuteForm;
import com.fmdj.mps.controller.form.CalculateTripDistanceAndDurationForm;
import com.fmdj.mps.controller.form.SearchBefittingDriverAboutOrderForm;
import com.fmdj.mps.controller.form.SearchOrderLocationCacheForm;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * 规则计费系统
 * */
@FeignClient(value = "fmdj-mps")
public interface MapServiceApi {

    @PostMapping("/map/calculateTripDistanceAndDuration")
    CommonResult calculateTripDistanceAndDuration(CalculateTripDistanceAndDurationForm form);

    @PostMapping("/driver/position/selectBefittingDriverAboutOrder")
    CommonResult selectBefittingDriverAboutOrder(SearchBefittingDriverAboutOrderForm form);

    @PostMapping("/driver/position/searchOrderPositionCache")
    CommonResult searchOrderPositionCache(SearchOrderLocationCacheForm form);

}
